#ifndef BM_PLAYER_H
#define BM_PLAYER_H
#include "creature.h"
#include "libraries/BM_camera.h"

class BMPlayer : public BMCreature {
	private:
		BMCamera camera;
		SF3dVector viewport;
		SF3dVector constview;
		int vertical;// 0: move all coordinates, 1: don't move y coor (normal or upside), 2: don't move z (right or left ways), 3: don't move x(front ways backways)
		float speed;
		float lastangle[3];
		int first_person;
		float goal_jump[3];
	public:
		BMPlayer();
		~BMPlayer();
		int load(char filename[64]);
		void forward();
		void back();
		void left();
		void right();
		void look(SDL_Event event, int swidth, int sheight, int use_joystick, float sensitivity);
		void attack();
		void changeWeapon();
		void action();
		void pickupWeapon();
		void view();
		void updateView();
		void resetView();
		void firstPerson();
		void thirdPerson();
		void move(float mx, float my, float mz);
		void draw();
		int jump(BMLevel *level);
		void resetDirection();
};


#endif
